import request from '@/utils/request'

export function getList(pageNum, pageSize, teacherName, phone) {
    return request({
      url: '/web/teacherInfo/getPage',
      method: 'get',
      params: { pageNum, pageSize, teacherName, phone }
    })
}

export function add(data) {
    return request({
      url: '/web/teacherInfo/add',
      method: 'post',
      data
    })
}

export function getEdi(id) {
    return request({
      url: '/web/teacherInfo/get/' + id,
      method: 'get'
    })
}

export function update(data) {
  return request({
    url: '/web/teacherInfo/update',
    method: 'post',
    data
  })
}